package com.cfswt.tasksystem.mapper;

import com.cfswt.tasksystem.pojo.entity.ToolOrder;
import com.cfswt.tasksystem.pojo.vo.ToolOrderApprovalVO;
import com.cfswt.tasksystem.pojo.vo.ToolOrderListVO;
import com.cfswt.tasksystem.pojo.vo.ToolOrderPlanVO;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

@Repository
public interface ToolOrderMapper {
    public int addToolOrder(ToolOrder toolOrder);

    public ToolOrderApprovalVO selectToolOrderApprovalVOByProcessInstanceId(String processInstanceId);

    public ToolOrderPlanVO selectToolOrderPlanVOByProcessInstanceId(String processInstanceId);

    public String selectProcessInstanceIdByOrderId(Integer orderId);

    public List<ToolOrderListVO> selectOrderList();

    public List<ToolOrderListVO> selectOrderListByUser(String nickName);

    public int updateOrderStatusBysn(String status ,String sn);

    public int countOrdersByDate(LocalDate date);
}
